package com.dream.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

/**
 * 学生在教室的哪个上位置
 * @author Administrator
 *
 */
@Entity
@Table(name="sys_room_position_user")
public class Sys_Room_Position_User extends AllId implements Serializable
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private SysUser sysUser;
	private Long inTime;//进入教育的时间
	private String inTimeShow;//进入教室的显示时间
	private String state="1";//状态，是否在教室   0不在，1在，2坏掉的，不能做
	private Long startClass;//开课时间     这里是教室对应的标识，表示在个教室的，这节课，他到底有没有报道
	private String startClassName;//开课的内容 
	private String roomId; //在哪个教室里面坐下了 
	private Integer x1;//行
	private Integer y1;//列 
	
	 

	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public SysUser getSysUser()
	{
		return sysUser;
	}

	public void setSysUser(SysUser sysUser)
	{
		this.sysUser = sysUser;
	}
 

	public Long getInTime()
	{
		return inTime;
	}

	public void setInTime(Long inTime)
	{
		this.inTime = inTime;
	}

	public String getInTimeShow()
	{
		return inTimeShow;
	}

	public void setInTimeShow(String inTimeShow)
	{
		this.inTimeShow = inTimeShow;
	}

	public String getState()
	{
		return state;
	}

	public void setState(String state)
	{
		this.state = state;
	}

	public Long getStartClass() {
		return startClass;
	}

	public void setStartClass(Long startClass) {
		this.startClass = startClass;
	}

	public String getStartClassName() {
		return startClassName;
	}

	public void setStartClassName(String startClassName) {
		this.startClassName = startClassName;
	}

	public Integer getX1() {
		return x1;
	}

	public void setX1(Integer x1) {
		this.x1 = x1;
	}

	public Integer getY1() {
		return y1;
	}

	public void setY1(Integer y1) {
		this.y1 = y1;
	}

	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}

	public Sys_Room_Position_User(String table_id, Long inTime, String inTimeShow, String state, Long startClass, String startClassName, String roomId, Integer x1, Integer y1,String userName,String user_id,String userImage,String tell) {
		super(table_id);
		this.inTime = inTime;
		this.inTimeShow = inTimeShow;
		this.state = state;
		this.startClass = startClass;
		this.startClassName = startClassName;
		this.roomId = roomId;
		super.setString1(userName);
		this.x1 = x1;
		this.y1 = y1;
		super.setString2(user_id);
		super.setString3(userImage);
		super.setString4(tell);
	}

	public Sys_Room_Position_User() {
	
	}
	
	  
}
